package com.hzqy.persistence.dao.statistics;

import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import com.hzqy.persistence.dao.core.PersistenceDao;
import com.hzqy.web.vo.AwardUserVo;
import com.hzqy.web.vo.PmsUserVo;
import com.hzqy.web.vo.statistics.StatDataUserSextupleVo;
import com.hzqy.web.vo.weekfree.WeekFreeInfoVo;

@Repository
public class WeekFreeDao extends PersistenceDao<PmsUserVo, Integer>{
	protected final Logger LOG = LoggerFactory.getLogger(WeekFreeDao.class);
	
	public int selectweekFreeCount(WeekFreeInfoVo weekFreeInfoVo) {
		String namespace = this.getNamespace();
		return getSqlSession().selectOne(namespace + "selectweekFreeCount", weekFreeInfoVo);
	}
	
	public List<WeekFreeInfoVo> selectweekFreeList(Map<String,Object> map){
		String namespace = this.getNamespace();
		return getSqlSession().selectList(namespace + "selectweekFreeList", map);
	}
	public int selectExcelCount(WeekFreeInfoVo weekFreeInfoVo) {
		String namespace = this.getNamespace();
		return getSqlSession().selectOne(namespace + "selectExcelContentCount", weekFreeInfoVo);
	}
	
	public List<WeekFreeInfoVo> selectExcelList(Map<String,Object> map){
		String namespace = this.getNamespace();
		return getSqlSession().selectList(namespace + "selectExcelList", map);
	}

	public Integer selectCxlyVideoCount(StatDataUserSextupleVo sextupleVo) {
		String namespace = this.getNamespace();
		return getSqlSession().selectOne(namespace + "selectCxlyVideoCount", sextupleVo);
	}

	public List<StatDataUserSextupleVo> selectCxlyVideoList(Map<String, Object> map) {
		String namespace = this.getNamespace();
		return getSqlSession().selectList(namespace + "selectCxlyVideoList", map);
	}

	public List<StatDataUserSextupleVo> selectVideoExcel(Map<String, Object> map) {
		String namespace = this.getNamespace();
		return getSqlSession().selectList(namespace + "selectVideoExcel", map);
	}
}
